package com.san.metadata.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.san.metadata.dao.OperationJobDao;
import com.san.metadata.domain.OperationJobDO;
import com.san.metadata.service.OperationJobService;

@Service("operationJobService")
public class OperationJobServiceImpl implements OperationJobService {

	@Autowired
	private OperationJobDao jobMapper;

	@Override
	public OperationJobDO getById(Long id) {
		return jobMapper.getById(id);
	}

	@Override
	public List<OperationJobDO> list(Map<String, Object> map) {
		return jobMapper.list(map);
	}

	@Override
	public int count(Map<String, Object> map) {
		return jobMapper.count(map);
	}

	@Override
	public int save(Object obj) throws Exception {
		return jobMapper.save(obj);
	}

	@Override
	public int doEdit(Object obj) throws Exception {
		return jobMapper.doEdit(obj);
	}

	@Override
	public int remove(Long id) throws Exception {
		return jobMapper.remove(id);
	}

	@Override
	public int batchRemove(Long[] ids) throws Exception {
		return jobMapper.batchRemove(ids);
	}

}
